package com.front.web.mall_part_front;

import com.bootdo.common.utils.R;
import com.bootdo.mall_part.domain.MallHousePlot;
import com.bootdo.mall_part.service.MallHousePlotService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/f/communityController")
public class MallHouseFrontController extends MallSuperFrontController{

    @RequestMapping("getCityDefault")
    public R getCityDefault(@RequestParam(value = "cityId", defaultValue = "0")Long cityId) {
        if (cityId == 0) {
            return R.error();
        }

        MallHousePlot cityDefault = mallHousePlotService.getCityDefault(cityId);
        return R.ok().put("i", cityDefault);
    }


}
